Scripting Language Interface Code Resource Messages
A telephone tool's scripting language interface code resource must be able to handle two messages.
enum { telMgetMsg = 0, telMsetMsg = 1 };Constant descriptions
telMgetMsg
- Your tool receives this message when an application calls
TELGetConfig
to get a null-terminated string describing the configuration for your telephone tool. Your tool should respond by returning, as its function result, a string that fully describes the configuration of the specified telephone record. If the string could not be successfully constructed, your tool should returnnil
. Parametersp1
,p2
, andp3
are unused.telMsetMsg
- Your tool receives this message when an application calls
TELSetConfig
to set the configuration of your telephone tool. On entry, parameterp1
points to a null-terminated string containing a description of the desired configuration. Your tool should respond by installing that configuration and returning, as its function result, a result code. The result code should be 0 if the string was successfully parsed. The result code should be a number less than -1 if an operating-system error occurred while parsing the string and -1 itself if some other error occurred. The result code can also be a positive number to indicate the character position at which parsing was suspended.- The Telephone Manager automatically calls
TELValidate
after your tool has responded totelMsetMsg
. Parametersp2
andp3
are unused.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help